<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<#include "head.ftl"/>
<title><#if (user.name)??>${user.name}<#elseif (ttAccessToken.account.nick)??>${ttAccessToken.account.nick}<#else>给我一块钱</#if></title>
</head>
<body>
<div class="container">
	<p>
		<h3>欢迎<em><strong>${(user.name)!}&nbsp;${(ttAccessToken.account.nick)!}</strong></em>，没想到这样也可以发微博吧，哈哈。</h3>
	</p>
	<hr>
	<#if status??>
		<div class="${status}">
			<#if status='success'>
				恭喜，微薄成功发布，再说点什么吧。
			<#elseif status='error'>
				非常抱歉的通知你,此次微博发布失败,再试试看？
			</#if>
		</div>
	</#if>
	<#if weiboStatus??>
		<div class="notice">
			<#if weiboStatus='sinaError'>
				新浪微薄同步失败。
			<#elseif weiboStatus='ttError'>
				腾讯微薄同步失败。
			</#if>
		</div>
	</#if>
	<div class="span-12">
		<form action="send" method="post">
			<textarea name="content"></textarea>
			<p>
				<input type="submit" value="发布微薄">
			</p>
		</form>
	</div>
	<div class="span-12 last">
		
		<div>
		<#if user??>
		    <div style="float:left">
			<#if (gmctx.proImgUrl)??>
				<img src="${gmctx.proImgUrl}" title="${user.name!}(新浪)"/>
			</#if>
			</div>
			<div style="float:left;margin-left:10px;">
				<p>${(user.name)!}</p>
				<p>${(user.location)!}</p>
			</div>
			<div class="clear"></div>
			<div style="margin-top:1em;">
				<p>${(user.description)!}</p>
			</div>
		</div>
		</#if>
		<#if (ttAccessToken.account)??>
		<div>
		    <div style="float:left">
				<img src="${ttAccessToken.account.head!}/50" title="${ttAccessToken.account.nick!}(腾讯)"/>
			</div>
			<div style="float:left;margin-left:10px;">
				<p>${ttAccessToken.account.nick!}</p>
				<p>${ttAccessToken.account.location!}</p>
			</div>
			<div class="clear"></div>
			<div style="margin-top:1em;">
				<p>${ttAccessToken.account.introduction!}</p>
			</div>
		</div>
	 	</#if>
	</div>
	
	<div>
	<#if (gmctx.proImgUrl)??>
	<#else>
		<a href="${ctx}/sina_auth"><img src="${ctx}/resources/images/sina-login-24.png"/></a>
	</#if>
	
	<#if (ttAccessToken.account)??>
	<#else>
		<a href="${ctx}/tt_auth"><img src="${ctx}/resources/images/qq-button24.png"/></a>
	</#if>
	</div>
</div>
</body>
</html>